import { IPSAppDEUILogicGroup } from '../../app/dataentity/ipsapp-deuilogic-group';
import { IPSAppDEUILogicGroupDetail } from '../../app/dataentity/ipsapp-deuilogic-group-detail';
import { PSModelObjectImpl } from '../../psmodel-object-impl';

export class PSSysDEUILogicGroupImpl extends PSModelObjectImpl implements IPSAppDEUILogicGroup {
  get codeName(): string {
    return this.M.codeName;
  }

  get dynaModelFilePath(): string {
    return this.M.dynaModelFilePath;
  }

  get extendMode(): 0 | 2 {
    return this.M.extendMode != null ? this.M.extendMode : 0;
  }

  get memo(): string {
    return this.M.memo;
  }

  get name(): string {
    return this.M.name;
  }

  protected psappdeuilogicgroupdetails: IPSAppDEUILogicGroupDetail[] | null = null;

  getPSAppDEUILogicGroupDetails(): IPSAppDEUILogicGroupDetail[] | null {
    if (this.psappdeuilogicgroupdetails == null) {
      this.psappdeuilogicgroupdetails = this.fillChildListModel(this.M.getPSAppDEUILogicGroupDetails, 'app.dataentity.IPSAppDEUILogicGroupDetail') as IPSAppDEUILogicGroupDetail[];
    }
    return this.psappdeuilogicgroupdetails;
  }

  get psAppDEUILogicGroupDetails(): IPSAppDEUILogicGroupDetail[] | null {
    return this.getPSAppDEUILogicGroupDetails();
  }

  findPSAppDEUILogicGroupDetail(objKey: any): IPSAppDEUILogicGroupDetail | null {
    return this.getPSModel5('app.dataentity.IPSAppDEUILogicGroupDetail', this.getPSAppDEUILogicGroupDetails(), objKey) as IPSAppDEUILogicGroupDetail;
  }

  get userCat(): string {
    return this.M.userCat;
  }

  get userTag(): string {
    return this.M.userTag;
  }

  get userTag2(): string {
    return this.M.userTag2;
  }

  get userTag3(): string {
    return this.M.userTag3;
  }

  get userTag4(): string {
    return this.M.userTag4;
  }

  get cls(): string {
    return 'PSSysDEUILogicGroupImpl';
  }

  instanceof(cls: string): boolean {
    if (cls == 'IPSModelObject' || cls == 'IPSObject' || cls == 'app.dataentity.IPSAppDEUILogicGroup' || cls == 'dataentity.IPSDataEntityObject' || cls == 'dataentity.logic.IPSDEUILogicGroup')
      return true;
    return super.instanceof(cls);
  }
}
